import request from '@/utils/request'

// 查询白名单列表
export function listWhite(query) {
  return request({
    url: '/parking/white/list',
    method: 'get',
    params: query
  })
}

// 查询白名单详细
export function getWhite(whiteId) {
  return request({
    url: '/parking/white/' + whiteId,
    method: 'get'
  })
}

// 新增白名单
export function addWhite(data) {
  return request({
    url: '/parking/white',
    method: 'post',
    data: data
  })
}

// 修改白名单
export function updateWhite(data) {
  return request({
    url: '/parking/white',
    method: 'put',
    data: data
  })
}

// 删除白名单

export function delWhite(whiteId) {
  return request({
    url: '/parking/white/' + whiteId,
    method: 'delete'
  })
}

//重新下发白名单
export function resend(whiteId) {
  return request({
    url: '/parking/white/resend/' + whiteId,
    method: 'put'
  })
}
